//
//  ViewB.h
//  drag
//
//  Created by 梁羽 on 2025/6/28.
//

#import <UIKit/UIKit.h>
@class ViewA;

NS_ASSUME_NONNULL_BEGIN

@interface ViewB : UIView
@property (nonatomic, weak) UIView *containerView; // 容器视图(视图A)
//@property (nonatomic, weak) ViewA *parentView; // 父视图(视图A)
@property (nonatomic, assign) CGPoint panStartLocation;
@property (nonatomic, strong) UIBezierPath *ellipsePath;
@property (nonatomic, strong) UIBezierPath *rectanglePath;
@property (nonatomic, assign) CGRect ellipseRect;
@property (nonatomic, assign) CGRect controlRect;
@property (nonatomic, strong) NSArray<UIButton *> *resizeButtons;
@property (nonatomic, assign) CGFloat minSize;
@property (nonatomic, strong) UIColor *ellipseBorderColor; // 椭圆边框颜色
@property (nonatomic, assign) CGFloat ellipseBorderWidth; // 椭圆边框粗细

- (UIBezierPath *)currentEllipsePathInView:(UIView *)view;
@end

NS_ASSUME_NONNULL_END
